home *** CD-ROM | disk | FTP | other *** search
- $ c_file = p1+".c"
- $ obj_file = p1+".obj"
- $ if f$search(obj_file) .NES. ""
- $ then
- $ obj_date = f$cvtime(f$file_attributes(obj_file,"RDT"))
- $ c_date = f$cvtime(f$file_attributes(c_file,"RDT"))
- $ if obj_date .GTS. c_date then exit
- $ delete 'obj_file';
- $ endif
- $ dbg = ""
- $ if debug .EQS. "DEBUG" then dbg = "/debug/noopt"
- $!
- $ if f$trnlnm("CCOMPILER") .EQS. "CC"
- $ then
- $ dbg = ""
- $ if debug .EQS. "DEBUG" then dbg = "/debug/noopt"
- $ write sys$output "cc ''dbg' ''options' ''c_file'"
- $ cc 'dbg' 'options' 'c_file'
- $ else
- $ sr = f$trnlnm("sockit_root")
- $ gccinc = f$extract(0,f$length(sr)-1,sr) + "gccinclude.]"
- $ if f$trnlnm("gnu_cc_include","lnm$process") .NES. ""
- $ then
- $ deass gnu_cc_include
- $ endif
- $ define/trans=conc gnu_cc_include 'gccinc'
- $ write sys$output "gcc ''dbg' ''options' ''c_file'"
- $ gcc 'dbg' 'options' 'c_file'
- $ endif
- $!
- $ altered == 1
- $ exit
-
-